import {baseUrl} from './config.js'

export function channel() {
	return uni.request({
		url:`${baseUrl}/news/channel`,
		method:'GET',
		header:{
			'Authorization':'APPCODE 1ce2878d48f14a2bb145cb77237ff276 ',
			// 8e0714e658684309befec1bb30cc247e 第二个appcode
			// 1ce2878d48f14a2bb145cb77237ff276 第二个appcode
		}
		
	})
}

export function Get(channel){
	return uni.request({
		url:`${baseUrl}/news/get?channel=${channel}`,
		method:'GET',
		header:{
			'Authorization':'APPCODE 1ce2878d48f14a2bb145cb77237ff276 ',
		}
	})
}

export function Search(keyword){
	return uni.request({
		url:`${baseUrl}/news/search?keyword=${keyword}`,
		method:'GET',
		header:{
			'Authorization':'APPCODE 1ce2878d48f14a2bb145cb77237ff276 ',
		}
	})
}
